package com.qf.shoppingcar.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@TableName("car")
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Car implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField("product_id")
    private Integer productId;
    @TableField("user_id")
    private String userId;
    @TableField("create_time")
    private String createTime;
    private Integer quantity;
    private String price;
}
